<?php 
/**
*file artlistdel.php
* 文章删除
*
*/
define('ACC', true);
require('../include/init.php');
//用户检查
if (empty($_SESSION['username'])) {
	header("location:../index.php");
}

//获取art_id
$art_id = $_GET['art_id']+0;
//print_r($_GET);


$art = new ArtModel();
if(!$art->delete($art_id)){
	$info = '删除失败';
	include(ROOT . 'view/admin/info.html');
	exit;
}else {
	$info = '删除成功';
	include(ROOT . 'view/admin/info.html');
}






?>